import Vue from 'vue'
// 引入
import VueRouter from 'vue-router'
// 引入组件
import Longin from '../view/longin'
import Registered from '../view/registered'
import Article from '../view/article'
import List from '../view/list'

// 使用
Vue.use(VueRouter)
// 创建router实例化对象
const router = new VueRouter({
  routes: [
    {
      path: '/longin',
      component: Longin
    },
    {
      path: '/registered',
      component: Registered
    },
    {
      path: '/article',
      component: Article
    },
    {
      path: '/list',
      component: List
    }
  ]

})
// 导出
export default router